﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="detailhoadon.ascx.cs" Inherits="controls_admin_detailhoadon" %>

<div id="content">        
    <!-- new box --> 
    	<div class="box corners shadow">
            <div class="box-header">
                <img src="../images/admin/contact.png" /><h2>Chi tiết hóa đơn</h2>
                <div class="box-header-ctrls">	
                	<a href="javascript:void(null);" title="" class="close"><!-- --></a>
                </div>
            </div>                
            <div class="box-content" id="contacts-1a">
               <div class="inbox-sf" style="height:300px">
               <table>
                    <tr>
                           <td>
                            <label for="select-save">Mã hóa đơn :  </label>&nbsp;&nbsp;&nbsp; &nbsp;
                           </td>
                           <td>
                            <asp:Label ID="lblMaHD" Text="" runat="server"></asp:Label>
                           </td> 
                            <td>
                            &nbsp;&nbsp;&nbsp; &nbsp;<label for="select-save">Tên khách hàng :  </label>&nbsp;&nbsp;&nbsp; &nbsp;
                           </td>
                           <td>
                            <asp:TextBox ID="txtTenKH" Text="" runat ="server" class="input-1" ReadOnly="True"></asp:TextBox>
                           </td> 
                    </tr>
                    <tr><td>&nbsp;&nbsp;&nbsp; &nbsp;</td></tr>
                    <tr>
                           <td>
                            <label for="select-save">Tên đăng nhập :  </label>&nbsp;&nbsp;&nbsp; &nbsp; 
                           </td>
                           <td>
                            <asp:TextBox ID="txtTenDN" Text="" runat ="server" class="input-1" ReadOnly="True"></asp:TextBox>
                           </td>  
                            <td>
                            &nbsp;&nbsp;&nbsp; &nbsp;<label for="select-save">Ngày lập HĐ :  </label>&nbsp;&nbsp;&nbsp; &nbsp;
                           </td>
                           <td>
                            <asp:TextBox ID="txtNgayLap" Text="" runat ="server" class="input-1" 
                                   ReadOnly="True"></asp:TextBox>
                           </td>  
                    </tr>
                    <tr><td>&nbsp;&nbsp;&nbsp; &nbsp;</td></tr>
                    <tr>
                           <td>
                            <label for="select-save">Địa chỉ :  </label>&nbsp;&nbsp;&nbsp; &nbsp; 
                           </td>
                           <td colspan="3">
                            <asp:TextBox ID="txtDiaChi" Text="" Width="615px" runat ="server" class="input-1" 
                                   ReadOnly="True"></asp:TextBox>
                           </td>          
                    </tr>
                    <tr><td>&nbsp;&nbsp;&nbsp; &nbsp;</td></tr>
                    <tr>
                           <td>
                           <label for="select-save">Số điện thoại :  </label>&nbsp;&nbsp;&nbsp; &nbsp;
                           </td>
                           <td>
                            <asp:TextBox ID="txtSDT" Text="" runat ="server" class="input-1" ReadOnly="True"></asp:TextBox>
                           </td> 
                            <td>
                            &nbsp;&nbsp;&nbsp; &nbsp;<label for="select-save">Email :  </label> &nbsp;&nbsp;&nbsp; &nbsp;
                           </td>
                           <td>
                            <asp:TextBox ID="txtEmail" Text="" runat ="server" class="input-1" ReadOnly="True"></asp:TextBox>
                           </td>                 
                    </tr>
                    <tr><td>&nbsp;&nbsp;&nbsp; &nbsp;</td></tr>
                    <tr>
                           <td>
                           <label for="select-save">Chiết khấu :  </label>&nbsp;&nbsp;&nbsp; &nbsp;
                           </td>
                           <td>
                            <asp:TextBox ID="txtChietKhau" Text="" runat ="server" class="input-1" 
                                   ReadOnly="True"></asp:TextBox>
                           </td> 
                            <td>
                            &nbsp;&nbsp;&nbsp; &nbsp;<label for="select-save">Tổng thành tiền :  </label> &nbsp;&nbsp;&nbsp; &nbsp;
                           </td>
                           <td>
                            <asp:TextBox ID="txtTongThanhTien" Text="" runat ="server" class="input-1" 
                                   ReadOnly="True"></asp:TextBox>
                           </td>                 
                    </tr>
                    <tr><td>&nbsp;&nbsp;&nbsp; &nbsp;</td></tr>
                    <tr>
                           <td>
                            <label for="select-save">Tổng thành tiền bằng chữ :  </label>&nbsp;&nbsp;&nbsp; &nbsp; 
                           </td>
                           <td colspan="3">
                               <asp:Label ID="lbTongThanhTienBangChu" runat="server" Text="Label"></asp:Label>
                           </td>          
                    </tr>
               </table>
                                                        
                </div>                                                           
                <table id="tablesorter-contact" style="width:100%">
                    <asp:Repeater ID="rptChiTietHoaDon" runat="server" 
                        onitemcommand="rptChiTietHoaDon_ItemCommand"> 
                        <HeaderTemplate>
                	        <thead class="contacts-head-1"> 
                                <tr>                                     
                                    <th class="contacts-head-1-id header" style="width:4%">STT</th>
                                    <th class="contacts-head-1-name header" style="width:39%">Tên hàng</th>
                                    <th class="contacts-head-1-name header" style="width:15%">Số lượng</th>
                                    <th class="contacts-head-1-role header" style="width:15%">Đơn giá</th>
                                    <th class="contacts-head-1-email header" style="width:15%">Thành tiền</th>       
                                </tr> 
                            </thead>
                           <tbody class="contacts-content-1">
                        </HeaderTemplate> 
                        <ItemTemplate>                                                                                
                                <tr>                                     
                                    <td class="contacts-content-1-id" style="width:4%"><%= stt++%></td>
                                    <td class="contacts-content-1-name" style="width:39%"><%# Eval("TenSanPham")%></td>
                                    <td class="contacts-content-1-name" style="width:15%"><%# Eval("SoLuong")%></td>
                                    <td class="contacts-content-1-role" style="width:15%"><%# Eval("DonGia", "{0:#,##0}")%></td>
                                    <td class="contacts-content-1-email" style="width:15%"><%# Eval("ThanhTien", "{0:#,##0}")%></td>                     
                                </tr>                                                                                                                                                                                                                                                       
                            
                        </ItemTemplate>
                        <FooterTemplate></tbody></FooterTemplate>
                    </asp:Repeater>                                            
                </table>                
                <div class="box-bt-bar"> 
                    <%--<ul class="box-nav" runat="server" id="Ul1">
                        <li><a href="#" title="" class="prev">Trước</a></li>
                        <li><a href="#" title="" class="active">1</a></li>
                        <li><a href="#" title="" class="num">2</a></li>
                        <li><a href="#" title="" class="num">3</a></li>

                        <li><a href="#" title="" class="num">4</a></li>
                        <li><a href="#" title="" class="num">..</a></li>
                        <li><a href="#" title="" class="next">Sau</a></li>
                    </ul>--%>
                    <div class="bulk-actions">
                        <%--<select name="field-13" class="select-1">
                            <option value="">Chọn thao tác</option>
                            <option value="">Sửa</option>
                            <option value="">Xóa</option>
                        </select>--%>
                        <asp:Button ID="btnQuayLai" runat="server" Text="Quay lại" title="Quay lại" 
                            onclick="btnQuayLai_Click" />                      
                    </div> 
                </div>                 
            </div>            
        </div>                                                                       
</div>
